
<%--
  Created by IntelliJ IDEA.
  User: venn
  Date: 12/19/2016
  Time: 10:16 PM
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String serverPath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+"/";
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
<!--<![endif]-->
<!-- BEGIN HEAD -->

<head>
    <meta charset="utf-8" />
    <title></title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1" name="viewport" />
    <meta content="" name="description" />
    <meta content="" name="author" />
    <!-- Bootstrap 3.3.6 -->
    <link rel="stylesheet" href="<%=basePath%>content/ui/global/bootstrap/css/bootstrap.min.css">
    <!-- Font Awesome -->
    <link href="<%=basePath%>content/ui/global/font-awesome/css/font-awesome1.css" rel="stylesheet" />
    <!-- Theme style -->
    <link rel="stylesheet" href="<%=basePath%>content/adminlte/dist/css/AdminLTE.css">
    <link rel="stylesheet" href="<%=basePath%>content/adminlte/dist/css/skins/_all-skins.min.css">
    <link href="<%=basePath%>content/min/css/supershopui.common.min.css" rel="stylesheet" />
    <link href="<%=basePath%>content/plugins/bootstrap-table/bootstrap-table.css" rel="stylesheet" />
    <!--全局通用框架样式 end-->
    <%--<%@ include file="/WEB-INF/jsps/base.jsp" %>--%>
    <%--<jsp:include page="/WEB-INF/jsps/base.jsp"></jsp:include>--%>
</head>
<body>
<!-- Main content -->
<section class="content">

    <div class="row">
        <!-- BEGIN SAMPLE TABLE PORTLET-->
        <div class="col-md-12">
            <!-- BEGIN SAMPLE TABLE PORTLET-->
            <div class="box-body" style="padding-bottom:0px;">
                <div class="panel panel-default">
                    <div class="panel-body">
                        <%-- 加上action,不然回车会触发表单的提交事件，导致刷新页面，不知道怎么解决--%>
                        <form id="create" class="form" action="javascript:create()">
                            <div class="form-group" style="margin-top:15px" style="padding:0px">
                                <%--<label class="control-label col-sm-1" for="tablename">TableName</label>--%>
                                <div class="col-sm-2">
                                    <input type="text" class="form-control" id="tablename" placeholder="Table Name" >
                                </div>
                                <%--<label class="control-label col-sm-1" for="partitions">Partition</label>--%>
                                <div class="col-sm-2">
                                    <input type="text" class="form-control" id="partitions" placeholder="Partition Prefix" >
                                </div>
                                <div class="col-sm-1">
                                    <input type="text" class="form-control" id="initial" placeholder="Initial" value="8">
                                </div>
                                <%--<label class="control-label col-sm-1" for="partitions">Partition</label>--%>
                                <div class="col-sm-1">
                                    <input type="text" class="form-control" id="next" placeholder="Next" value="8">
                                </div>
                                <%--<label class="control-label col-sm-1" for="startTime">StartTime</label>--%>
                                <div class="col-sm-2">
                                    <div class="input-group date">
                                        <div class="input-group-addon">
                                            <i class="fa fa-calendar"></i>
                                        </div>
                                        <input type="text" class="form-control pull-right" id="starttime">
                                    </div>
                                </div>
                                <div class="col-sm-2">
                                    <div class="input-group date">
                                        <div class="input-group-addon">
                                            <i class="fa fa-calendar"></i>
                                        </div>
                                        <input type="text" class="form-control pull-right" id="endtime">
                                    </div>
                                </div>
                                <div class="col-sm-2" style="text-align:left;">
                                    <button type="button" style="margin-left:25px" id="btn_create" class="btn btn-primary">create</button>
                                </div>
                            </div>

                        </form>
                    </div>

                </div>
                <div class="panel panel-default">
                    <div class="panel-body" id="div_part">
                    <br/>
                        <textarea id="part" style="width:100%;overflow-y:visible"  wrap="hard"></textarea>
                    </div>
                </div>
                <div class="panel panel-default">
                    <div class="panel-body">
                        <ul>
                            <li>First Input : Table Name</li>
                            <li>Second Input : Partition Name Prefix</li>
                            <li>Third Input : Initial Size, Default 8M</li>
                            <li>Four Input : Next Size, Default 8M</li>
                        </ul>
                    </div>
                </div>

            </div>

        </div>

    </div>


</section>
<script src="<%=basePath%>content/ui/global/jQuery/jquery.min.js"></script>
<!-- Bootstrap 3.3.6 -->
<script src="<%=basePath%>content/ui/global/bootstrap/js/bootstrap.min.js"></script>
<script src="<%=basePath%>content/min/js/supershopui.common.js"></script>
<script src="<%=basePath%>content/supermgr/Base/js/common.js"></script>
<script src="<%=basePath%>content/plugins/bootstrap-table/bootstrap-table.js"></script>
<script src="<%=basePath%>content/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.js"></script>
<script src="<%=basePath%>content/supermgr/Module/SchedulerMgr/SchedulerMgr.js"></script>
<script src="<%=basePath%>content/plugins/select2/select2.full.min.js"></script>
<script src="<%=basePath%>content/plugins/input-mask/jquery.inputmask.js"></script>
<script src="<%=basePath%>content/plugins/input-mask/jquery.inputmask.date.extensions.js"></script>
<script src="<%=basePath%>content/plugins/input-mask/jquery.inputmask.extensions.js"></script>
<script src="<%=basePath%>content/plugins/daterangepicker/daterangepicker.js"></script>
<script src="<%=basePath%>content/plugins/datepicker/bootstrap-datepicker.js"></script>
<script src="<%=basePath%>content/plugins/colorpicker/bootstrap-colorpicker.min.js"></script>
<script src="<%=basePath%>content/plugins/timepicker/bootstrap-timepicker.min.js"></script>
<script src="<%=basePath%>content/plugins/iCheck/icheck.min.js"></script>
<script src="<%=basePath%>static/js/addpartitions.js"></script>
</body>
</html>